package com.bosssoft.enums;

/**
 * 事物异常的报错枚举类
 * 增加异常为2xx1
 * 删除异常为2xx2
 * 修改异常为2xx3
 * 查找异常为2xx4
 * 试题:2000
 * 试卷:2100
 * 答题卡:2200
 * @author Aria
 */
public enum DaoCode implements FibEnums {
    TRANSACTIONAL_ERROR(500,"事物异常"),

    STRING_DEAL_ERROR(600,"字符串切割异常"),

    ID_IS_NULL(1000,"id为空"),

    JSON_ERROR(1100,"json有误"),

    Redis_Read_ERROR(2301,"redis读取消息队列内key异常");


    int code;
    String message;

    DaoCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
